﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="True" CodeBehind="Explorer.aspx.cs" Inherits="Cms.Web.UI.Admin.Explorer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" href="/Admin/Css/Explorer.css?v=1" type="text/css" />
    <link rel="Stylesheet" href="/Admin/Css/List.css" type="text/css" />
    <link rel="Stylesheet" href="/Admin/Css/DragAndDrop.css" type="text/css" />
    <script language="javascript" type="text/javascript" src="/Admin/Js/DragAndDrop.js?v=3"></script>
    <script language="javascript" type="text/javascript" src="/Admin/Js/PageSpecific/Explorer.aspx.js?v=2"></script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="buttons" runat="server">
    <asp:UpdatePanel ID="upnlButtons" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>
            <asp:hyperlink ID="hlNewPage" runat="server" NavigateUrl="/Admin/EditPage.aspx" CssClass="orangeButton"><span><span><img src="/Admin/Img/icons/page_add.png" alt="" /><span><cms:LocalizedLiteral ID="llNewPage" runat="server" /></span></span></span></asp:hyperlink>
            <asp:hyperlink ID="hlNewFolder" runat="server" NavigateUrl="/Admin/EditFolder.aspx" CssClass="orangeButton"><span><span><img src="/Admin/Img/icons/folder_add.png" alt="" /><span><cms:LocalizedLiteral ID="llNewFolder" runat="server" /></span></span></span></asp:hyperlink>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <asp:Literal ID="litIcon" runat="server" Visible="false" Text="Admin/Img/Icons/folder_page.png" />
    <div style="overflow: hidden;">
        <div id="folderPane">
            <asp:UpdatePanel ID="upnlFolders" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
                <ContentTemplate>
                    <asp:Panel ID="pnlFolderActions" runat="server" />
                    <asp:Literal ID="litFolders" runat="server" />
                </ContentTemplate>
            </asp:UpdatePanel>
            <div id="folderPaneOverlay" class="paneOverlay"></div>
            <div id="folderPaneOverlayProgress" class="paneOverlayProgress"><img src="/Admin/img/progress.gif" /></div>
        </div>
        <div class="verticalDivider">&nbsp;</div>
        <div id="pagePane">
            <asp:UpdatePanel ID="upnlPages" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
                <ContentTemplate>
                    <asp:Panel ID="pnlPageActions" runat="server" />
                    <table>
                        <tr>
                            <th><cms:LocalizedLiteral ID="llNameHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llFilenameHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llMasterTemplateHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llDetailTemplateHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llCategoriesHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llUserGroupsHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llPageIDHeader" runat="server" /></th>
                        </tr>
                        <asp:Repeater ID="rpPages" runat="server" OnItemDataBound="rpPages_ItemDataBound">
                            <ItemTemplate>
                                <tr>
                                    <td><asp:Literal ID="litID" runat="server" /><img id="imgPage" runat="server" alt="" src="" /><span><asp:literal ID="litName" runat="server" /></span></span></td>
                                    <td><asp:Literal ID="litFilename" runat="server" /></td>
                                    <td><asp:Literal ID="litMasterTemplate" runat="server" /></td>
                                    <td><asp:Literal ID="litDetailTemplate" runat="server" /></td>
                                    <td><asp:Literal ID="litCategories" runat="server" /></td>
                                    <td><asp:Literal ID="litUserGroups" runat="server" /></td>
                                    <td><asp:Literal ID="litPageID" runat="server" /></td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                    <asp:Panel ID="pnlNoPages" runat="server" class="noListRows"><cms:LocalizedLiteral ID="llNoPages" runat="server" /></asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
            <div id="pagePaneOverlay" class="paneOverlay"></div>
            <div id="pagePaneOverlayProgress" class="paneOverlayProgress"><img src="/Admin/img/progress.gif" alt="" /></div>
        </div>
        <div style="clear: both;"></div>
    </div>
    <asp:UpdatePanel ID="upnlActions" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
        <ContentTemplate>
            <div id="pnlFolderPopup" class="popup">
                <a id="hlOpenFolder" href="#"><img src="/Admin/Img/icons/folder_page.png" /><span><cms:LocalizedLiteral ID="llOpenFolder" runat="server" /></span></a>
                <a id="hlEditFolder" href="/Admin/EditFolder.aspx"><img src="/Admin/Img/icons/folder_edit.png" /><span><cms:LocalizedLiteral ID="llEditFolder" runat="server" /></span></a>
                <div class="horizontalDivider" style="margin-bottom: 3px; margin-top: 4px; margin-left: 27px; margin-right: 4px;"></div>
                <asp:LinkButton ID="lbDeleteFolder" runat="server" OnClick="lbDeleteFolder_Click"><img id="imgDeleteFolder" runat="server" src="/Admin/Img/icons/cross.png" /><span id="lblDeleteFolder" runat="server"><cms:LocalizedLiteral ID="llDeleteFolder" runat="server" /></span></asp:LinkButton>
            </div>
            <div id="pnlPagePopup" class="popup">
                <asp:LinkButton id="lbPreviewPage" runat="server" OnClick="lbPreviewPage_Click" OnClientClick="cms.Lists.ShowPaneOverlay('pagePaneOverlay');"><img id="imgPreviewPage" runat="server" src="/Admin/Img/icons/page_magnify.png" alt="" /><span id="lblPreviewPage" runat="server"><cms:LocalizedLiteral ID="llPreviewPage" runat="server" /></span></asp:LinkButton>
                <a id="hlEditPageContent" href="#"><img src="/Admin/Img/icons/page_white_edit.png" /><span><cms:LocalizedLiteral ID="llEditPageContent" runat="server" /></span></a>
                <a id="hlEditPageLocalizedProperties" href="#"><img src="/Admin/Img/icons/page_world.png" /><span><cms:LocalizedLiteral ID="llEditPageLocalizedProperties" runat="server" /></span></a>
                <a id="hlEditPageDesign" href="#"><img src="/Admin/Img/icons/page_code.png" /><span><cms:LocalizedLiteral ID="llEditPageDesign" runat="server" /></span></a>
                <a id="hlEditPageCode" href="#"><img src="/Admin/Img/icons/page_white_csharp.png" /><span><cms:LocalizedLiteral ID="llEditPageCode" runat="server" /></span></a>
                <a id="hlEditPageBasicProperties" href="#"><img src="/Admin/Img/icons/page_gear.png" /><span><cms:LocalizedLiteral ID="llEditPageBasicProperties" runat="server" /></span></a>
                <div class="horizontalDivider" style="margin-bottom: 3px; margin-top: 4px; margin-left: 27px; margin-right: 4px;"></div>
                <asp:LinkButton ID="lbDeletePage" runat="server" OnClick="lbDeletePage_Click" OnClientClick="cms.Lists.ShowPaneOverlay('pagePaneOverlay');"><img id="imgDeleteFile" runat="server" src="/Admin/Img/icons/cross.png" alt="" /><span id="lblDeleteFile" runat="server"><cms:LocalizedLiteral ID="llDeletePage" runat="server" /></span></asp:LinkButton>
            </div>
            <input type="hidden" id="hidSelectedFolderID" runat="server" />
            <input type="hidden" id="hidDeleteFolderID" runat="server" />
            <input type="hidden" id="hidDraggedID" runat="server" />
            <input type="hidden" id="hidDropzoneID" runat="server" />
            <input type="hidden" id="hidSelectedPageID" runat="server" />
            <input type="hidden" id="hidToggleFolderId" runat="server" />
            <asp:LinkButton ID="lbDragEnd" runat="server" OnClick="lbDragEnd_Click" Text="DragEnd" style="position: absolute; left: -10000px;" />
            <asp:Button ID="btnSelectFolder" runat="server" OnClick="btnSelectFolder_Click" Text="Select" style="position: absolute; left: -10000px;" />
            <asp:Button ID="btnToggleFolder" runat="server" OnClick="btnToggleFolder_Click" Text="Toggle" style="position: absolute; left: -10000px;" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
